
    <script language="javascript">
    $(document).ready(function(){
        $("#wrap-map").gmap3({
         map:{
            options:{
            center: [27.6648274, -81.51575350000002],
             zoom: 8,
             scrollwheel: false
            }
         },
         marker:{
            values:[
            <?php foreach($gdata as $gd): ?>
                <?php if(!empty($gd->gps)): ?>
                {latLng:[<?php echo $gd->gps; ?>], options:{icon: "<?php echo base_url('assets/theme/blue/img/marker_blue.png'); ?>"}, data:"<img style=\"max-width: 150px; height: 100px;\" src=\"uploads/thumbs/<?php echo $gd->photo; ?>\" /><br /><?php echo $gd->address; ?><br /><?php echo $gd->title; ?><br /><span class=\"label label-info\">&nbsp;&nbsp;<?php echo $gd->estateName; ?>&nbsp;&nbsp;</span><br /><a href=\"<?php echo base_url('single').$gd->id ?>\"><?php echo $gd->catName ?></a>"},
                <?php endif; ?>
            <?php endforeach; ?>
            ],
            
        options:{
          draggable: false
        },
        events:{
          mouseover: function(marker, event, context){
            var map = $(this).gmap3("get"),
              infowindow = $(this).gmap3({get:{name:"infowindow"}});
            if (infowindow){
              infowindow.open(map, marker);
              infowindow.setContent('<div style="width:400px;display:inline;">'+context.data+'</div>');
            } else {
              $(this).gmap3({
                infowindow:{
                  anchor:marker,
                  options:{content: '<div style="width:400px;display:inline;">'+context.data+'</div>'}
                }
              });
            }
          },
          mouseout: function(){
            /*/var infowindow = $(this).gmap3({get:{name:"infowindow"}});
            //if (infowindow){
            //  infowindow.close();
            //} */
          },
        }}});
    });
    
    </script>
<div class="wrap-map" id="wrap-map">
</div>


<div class="wrap-search">
    <div class="container">
        <ul class="menu-onmap">
            <li class="active"><a href="#">Sale</a></li>
            <li class=""><a href="#">Rent</a></li>
            <li class=""><a href="#">Sale and Rent</a></li>
            
        </ul>
        <div class="search-form">
            <form class="form-inline" action="<?php echo site_url() . "search" ?>" method="GET" >
                
                <div class="span6">
                  <input type="text" class="span6" placeholder="Search text:" name="searchstr"  />
                </div>
                <div class="span6">
                  <?php 
                   array_unshift($sType, " ");
                  echo form_dropdown('type', $sType, '', 'class="span3 selectpicker"','id=""', 'placeholder="'.lang('content_estatetype').'"' ) ?>
                  <?php echo form_dropdown('squaremeter', $sSm, '', 'class="span3 selectpicker"','id=""', 'placeholder="'.lang('content_squaremeter').'"' ) ?>
                </div>
                <div class="form-row-space"></div>
                <div class="span6">
                  <input id="search_option_36_from" name="pricemin" class="span3 mPrice" type="text" placeholder="<?php echo lang('content_pricemin'); ?> ($)">
                  <input id="search_option_36_from" name="pricemax" class="span3 mPrice" type="text" placeholder="<?php echo lang('content_pricemax'); ?> ($)" style="margin-left:15px">
                  
                </div>
                <div class="span6">
                  <input id="search_option_36_from" name="bathroom" class="span3 mPrice" type="text" placeholder="<?php echo lang('content_bathroom'); ?> (pc)">
                  <input id="search_option_36_from" name="room" class="span3 mPrice" type="text" placeholder="<?php echo lang('content_room'); ?> (pc)" style="margin-left:15px">
                </div>
                <div class="span6">
                <?php 
                //echo '<div class="span2" style="margin-left:0;"  ><strong>'.lang('content_estatetype') .'</strong><br>'. form_dropdown('type', $sType, '', 'class="span2 selectpicker-small"','id="vType"', 'placeholder="'.lang('content_estatetype').'"' ) . '</div>' ?>
                <?php //echo '<div class="span2" ><strong>'.lang('content_room') .'</strong><br>'.form_dropdown('room', $sRoom, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_room').'"') . '</div>' ?>
                <?php //echo '<div class="span2"><strong>'.lang('content_bathroom') .'</strong><br>'.form_dropdown('bathroom', $sBathroom, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_bathroom').'"') . '</div>' ?>
                <?php echo '<div class="span3" style="margin-left:0;"><strong>'.lang('content_heating') .'</strong><br>'.form_dropdown('heating', $sHeating, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_heating').'"') . '</div>' ?>
                <?php //echo '<div class="span2"><strong>'.lang('content_squaremeter') .'</strong><br>'.form_dropdown('squaremeter', $sSm, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_squaremeter').'"') . '</div>'?>
                <?php 
                array_unshift($sCat, " ");
                echo '<div class="span3" style="margin-left:0;"><strong>'.lang('content_category') .'</strong><br>'. form_dropdown('category', $sCat,'', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_category').'"') . '</div>' ?>
                <?php //echo '<div class="span2" ><strong>'.lang('content_pricemin') .'</strong><br>'. form_dropdown('pricemin', $sPricemin, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_pricemin').'"') . '</div>' ?>
                <?php //echo '<div class="span2" ><strong>'.lang('content_pricemax') .'</strong><br>'. form_dropdown('pricemax', $sPricemax, '', 'class="span3 selectpicker-small"',  'placeholder="'.lang('content_pricemax').'"') . '</div>' ?>
          
                </div>
                 <div class="span6">
                   <?php echo '<div class="span3" style="margin-left:0;"><strong>'.lang('content_buildstatus') .'</strong><br>'.form_dropdown('buildstatus', $sBs, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_buildstatus').'"') . '</div>'?>
                   <?php echo '<div class="span3" style="margin-left:0;" ><strong>'.lang('content_floor') .'</strong><br>'.form_dropdown('floor', $sFloor, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_floor').'"') . '</div>' ?>
                 </div>
                <br style="clear:both;" />
                <button id="search-start" type="submit" class="btn btn-info btn-large span">&nbsp;&nbsp;Search&nbsp;&nbsp;</button>
            </form>
        </div>
    </div>
</div>
